fix: Account lists for credit card export appear on vendor bills#90593
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4caace4b7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4caace4b7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| ); | ||
|
|
||
| const dynamicBackPath = useDynamicBackPath(DYNAMIC_ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORT.path); | ||
| const goBack = useCallback(() => { |
There was a problem hiding this comment.
Remove useCallback. Not blocker since it's existing logic
There was a problem hiding this comment.
Got it, PR updated 👍
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.mov |
Code ReviewThe However, the // line 51: backTo is destructured from route params
const {policyID, cardID, backTo} = route.params;
// line 89: but not passed to getExportMenuItem
const exportMenuItem = getExportMenuItem(connectedIntegration, policyID, translate, policy, card);
// ^ missing backToSo Suggestion: Pass const exportMenuItem = getExportMenuItem(connectedIntegration, policyID, translate, policy, card, backTo);Please verify this is needed for the fix to work end-to-end, or clarify if the |
|
#90593 (comment) is not valid. |
|
🚧 @francoisl has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Explanation of Change
This PR updates QBO export link generation to preserve the company card context when available using
backTo, and passesuseDynamicBackPathas the third parameter togoBackFromExportConnectioninDynamicQuickbooksExportConfigurationPage, preventing the account list from appearing for credit card exports on vendor billsFixed Issues
$ #89148
PROPOSAL: #89148 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Preconditions:
QuickBooks Online credit card exportrowexport optionin the sub header of the RHPExport company card expenses asrowExport asand select Debit cardQuickBooks Online debit card exportpageQuickBooks Online credit card exportrowexport optionin the sub header of the RHPExport company card expenses asrowExport asand select Vendor billPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android-App.mp4
Android: mWeb Chrome
Android-mWeb.mp4
iOS: Native
iOS-App.mp4
iOS: mWeb Safari
iOS-mWeb.mp4
MacOS: Chrome / Safari
MacOS-Chrome.mp4